#ifndef _Manage_Tool_H_
#define _Manage_Tool_H_

#include "DBAgentServant.h"
#include "HallServant.h"

using namespace std;
using namespace dbagent;
using namespace hall;

time_t ManageToolStrTime2Unix(string timeStamp);

// 生产消息
void ManageToolGenMessge(int iType, long uId, long lBalance, long cId, string sClubName, long pId);

// 财富纯日志
void ManageToolLogCoinChange(long uId, long lChangeCoin, long lBalance, int iType, long lRelateId);

// 财富更改
void ManageToolChangeUWealth(long uId, long lChangeGoldCoin, int iType);

// 财富更新(tg账号)
void ManageToolModifyWalletBalance(long uId, long lChangeGoldCoin, int iType);

// 查询财富信息(tg账号)
long ManageToolGetWalletBalance(long uId);

// 同步扣钱
bool ManageToolTakeUWealth(long uId, int iFlag, long lAmount, int iType, string sRelateId);

// 获取俱乐部最近更新时间戳
tars::Int32 ManageToolGetActTime(const DBAgentServantPrx prx, tars::Int64 id, int &dayTime, int &monthTime);

// 更新俱乐部最近时间戳
tars::Int32 ManageToolModifyActTime(const DBAgentServantPrx prx, tars::Int64 id, int flag, int actTime);

#endif